package cn.chiship.framework.business.biz.member.pojo.dto;

import cn.chiship.sdk.core.base.constants.BaseTipConstants;
import cn.chiship.sdk.core.base.constants.RegexConstants;
import cn.chiship.sdk.framework.pojo.dto.UserModifyPasswordDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author lijian 修改密码
 */
@ApiModel(value = "用户密码修改表单")
public class MemberModifyPasswordDto extends UserModifyPasswordDto {

	@ApiModelProperty(value = "手机号", required = true)
	@NotEmpty(message = "手机号" + BaseTipConstants.NOT_EMPTY)
	@Length(min = 11, max = 11)
	@Pattern(regexp = RegexConstants.MOBILE, message = BaseTipConstants.MOBILE)
	private String mobile;

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

}
